#pragma once
#include "IsapiTools.h"
#include <string>
#include <boost/regex.hpp>

using namespace std;
class CSQLCleanUp
{
public:
	CSQLCleanUp(void);
public:
	~CSQLCleanUp(void);
public:
	void CleanURLVar(string URLString);
protected:
   boost::regex reg;
   boost::regex urlExp;
   boost::match_results<std::string::const_iterator> matches;
   string StripUnsafeSequences(const string& s);
   bool ShouldIgnoreVar(const string & Var);
   string UriEncode(const string & sSrc);
   string UriDecode(const string & sSrc);
   bool ShouldEscape(BYTE c);


public:
	// Final Stripped URL
	string StrippedURL;
};
